const { defineConfig } = require('@vue/cli-service')  
module.exports = defineConfig({  
  transpileDependencies: true,  
  // 去掉 lint 检查  
  lintOnSave: false,  
  devServer: {  
    proxy: {  
      '/api': {  
        // api 地址  
        target: 'http://127.0.0.1:8080',
        changeOrigin: true,  
        pathRewrite: {  
          // 去掉 /api 前缀
          '^/api': '' 
        }  
      }  
    }  
  }  
})